/**
 * @filename:PickDetail Sep 23, 2024
 * Copyright(c) 2022 Wonder Co. Ltd.
 * All right reserved.
 */
package com.wonder.app.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;

/**
 * @Description:TODO(生产领料详情实体类)
 *
 * @author: Wonder
 *
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_prd_pick_detail")
@ApiModel(value="t_prd_pick_detail对象", description="生产领料详情表")
public class PickDetail extends Model<PickDetail> {

    private static final long serialVersionUID = 1727085603482894L;

    @TableId(value ="Id", type = IdType.AUTO)
    @ApiModelProperty(name = "Id" , value = "主键")
    private Long Id;

    @TableField(value = "FBILLNO")
    @ApiModelProperty(name = "FBILLNO" , value = "单据编号")
    private String FBILLNO;

    @TableField(value = "FMATERIALNUMBER")
    @ApiModelProperty(name = "FMATERIALNUMBER" , value = "物料编码")
    private String FMATERIALNUMBER;

    @TableField(value = "FMATERIALNAME")
    @ApiModelProperty(name = "FMATERIALNAME" , value = "物料名称")
    private String FMATERIALNAME;

    @TableField(value = "FSPECIFICATION")
    @ApiModelProperty(name = "FSPECIFICATION" , value = "规格型号")
    private String FSPECIFICATION;

    @TableField(value = "FUNITID")
    @ApiModelProperty(name = "FUNITID" , value = "单位内码")
    private String FUNITID;

    @TableField(value = "FUNITNAME")
    @ApiModelProperty(name = "FUNITNAME" , value = "单位名称")
    private String FUNITNAME;

    @TableField(value = "FINFACTQTY")
    @ApiModelProperty(name = "FINFACTQTY" , value = "实发数量")
    private Double FINFACTQTY;

    @TableField(value = "FCONNPPBOM")
    @ApiModelProperty(name = "FCONNPPBOM" , value = "用料清单关联行(用料清单主键)")
    private Long FCONNPPBOM;


    @TableField(value = "FSTOCKNUMBER")
    @ApiModelProperty(name = "FSTOCKNUMBER" , value = "仓库编码")
    private String FSTOCKNUMBER;

    @TableField(value = "FSTOCKNAME")
    @ApiModelProperty(name = "FSTOCKNAME" , value = "仓库名称")
    private String FSTOCKNAME;

    @TableField(value = "FLOCATIONNUMBER")
    @ApiModelProperty(name = "FLOCATIONNUMBER" , value = "仓位编码")
    private String FLOCATIONNUMBER;

    @TableField(value = "FLOCATIONNAME")
    @ApiModelProperty(name = "FLOCATIONNAME" , value = "仓位名称")
    private String FLOCATIONNAME;

    @TableField(value = "FLOT")
    @ApiModelProperty(name = "FLOT" , value = "批号，判断物料是否启用，如果启用默认999")
    private String FLOT;


    @TableField(value = "FLOCATIONID")
    @ApiModelProperty(name = "FLOCATIONID" , value = "仓位内码")
    private Integer FLOCATIONID;

    @TableField(value = "TRAYNO")
    @ApiModelProperty(name = "TRAYNO" , value = "托号")
    private String TRAYNO;

    @TableField(value = "USERID")
    @ApiModelProperty(name = "USERID" , value = "创建人id")
    private Long USERID;

    @TableField(value = "TEMP")
    @ApiModelProperty(name = "TEMP" , value = "是否是临时数据")
    private Boolean TEMP;

    @TableField(value = "MOBILLNO")
    @ApiModelProperty(name = "MOBILLNO" , value = "生产订单号")
    private String MOBILLNO;

    @TableField(value = "CREATETIME")
    @ApiModelProperty(name = "CREATETIME" , value = "创建时间")
    private Date CREATETIME;

    @TableField(value = "ISPPBOM")
    @ApiModelProperty(name = "ISPPBOM" , value = "是否是用料清单上的物料")
    private Boolean ISPPBOM;

    @TableField(value = "WORKSHOPNAME")
    @ApiModelProperty(name = "WORKSHOPNAME" , value = "车间名称")
    private String WORKSHOPNAME;

    @TableField(value = "ISPRINT")
    @ApiModelProperty(name = "ISPRINT" , value = "是否打印")
    private Boolean ISPRINT;

    @TableField(exist = false)
    private Tray tray;

    @Override
    public Serializable pkVal() {
        return this.Id;
    }

}
